<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    姓名<input type="text" id="list1" list="datalist"/>
    <datalist id="datalist">
   <option value="张三" id="zhangsan"></option>
   <option value="李四" id="lisi"></option>

    </datalist>




</body>
</html>